import request from '@/utils/request'

// 查询美团菜品消耗单主列表
export function listFoodconsum(query) {
  return request({
    url: '/mt/foodconsum/list',
    method: 'get',
    params: query
  })
}

// 查询美团菜品消耗单主详细
export function getFoodconsum(id) {
  return request({
    url: '/mt/foodconsum/' + id,
    method: 'get'
  })
}

// 新增美团菜品消耗单主
export function addFoodconsum(data) {
  return request({
    url: '/mt/foodconsum',
    method: 'post',
    data: data
  })
}

// 修改美团菜品消耗单主
export function updateFoodconsum(data) {
  return request({
    url: '/mt/foodconsum',
    method: 'put',
    data: data
  })
}

// 删除美团菜品消耗单主
export function delFoodconsum(id) {
  return request({
    url: '/mt/foodconsum/' + id,
    method: 'delete'
  })
}

// 导出美团菜品消耗单主
export function exportFoodconsum(query) {
  return request({
    url: '/mt/foodconsum/export',
    method: 'get',
    params: query
  })
}